import { defineStore } from 'pinia'

export const useUserInfo = defineStore('userInfo', {
    state:()=>{
        return {
            userInfo:{
                userName:''
            }
        }
    },
    actions:{},
    persist:{
        enabled:true,
        strategies:[
            {
                storage:localStorage,
                paths:['user']
            }
        ]
    }
})
